#define _CRT_SECURE_NO_WARNINGS

#include "Sort.h"

void testQuickSort()
{
	int a[] = { 9,1,2,5,7,4,8,6,3,5 };
	int n = sizeof(a) / sizeof(a[0]);
	QuickSort(a, 0, n-1);
}
void testBubbleSort()
{
	int a[] = { 9,1,2,5,7,4,8,6,3,5 };
	int n = sizeof(a) / sizeof(a[0]);
	BubbleSort(a, n);
}
void testHeapSort()
{
	int a[] = { 9,1,2,5,7,4,8,6,3,5 };
	int n = sizeof(a) / sizeof(a[0]);
	HeapSort(a, n);
}
void testSelectSort()
{
	int a[] = { 9,1,2,5,7,4,8,6,3,5 };
	int n = sizeof(a) / sizeof(a[0]);
	SelectSort(a, n);
}
void testShellSort()
{
	int a[] = { 9,1,2,5,7,4,8,6,3,5 };
	int n = sizeof(a) / sizeof(a[0]);
	ShellSort(a, n);
}
void testInsertSort()
{
	int a[] = { 1,8,2,4,5,5,6,3,9 };
	int n = sizeof(a) / sizeof(a[0]);
	InsertSort(a,n);
}
int main()
{
	//testInsertSort();
	//testShellSort();
	//testSelectSort();
	//testHeapSort();
	//testBubbleSort();
	testQuickSort();
	return 0;
}